/*
 create by sys on 2016/11/22.
 */

define(["require",'config/appregister',"business/Companyinfor/service/htttp",
"business/services/regionService",
 "business/myResume/services/jobIntensionComp",
"business/services/filter","jquery","business/workSkill/directive/startLevel"],function(require,app,httpServices){
    app.controller('workPosCtrl',function($scope,$timeout,$state,auth){
        auth.isCompanyLogin();
        $scope.noContent2="还没内容，赶快去寻找吧！"
	   $scope.goTo = function(state){
            if(!state){
                return
            }
            $state.go(state);
        };//职能
           $scope.resumTab=1;
        $scope.goResume=function(id){
        	$state.go("resume.myResumePreview",{userId:id})
        }
        $scope.sendworks=function(){
            $state.go("sendWokrCtrl");
        }
        $scope.jobInJobConf = {
            top:"",
            detail:"",
            showValue:"请选择",
            isShow:false,
            maxSelect:1
        };
        $scope.jobInJobConf2 = {
            top:"",
            detail:"",
            showValue:"",
            isShow:false,
            maxSelect:1
        };
        $scope.jobInJobConf4 = {
            top:"",
            detail:"",
            showValue:"自定义",
            isShow:false,
            maxSelect:1
        };
		$scope.showWoekSkill=function(){
        	 $scope.jobInJobConf.isShow=true;
        }
        $scope.showJob2 = function(){
            $scope.jobInJobConf4.isShow=true;
        }


        $scope.showColor3=-1;
        //专业配置
        $scope.majorConf = {
            top:"",
            second:"",
            detail:"自定义",
            isShow:false
        };
        $scope.majorConf2 = {
            top:"",
            second:"",
            detail:"",
            isShow:false
        };
        $scope.showMajor=function(a){
            $scope.majorConf.isShow=true;
        }

        $scope.showMa=function(){
            $scope.majorConf.isShow=true;
        }

        $scope.jobInIndustryConf = {
            detail:"",
            showValue:"",
            isShow:false,
            maxSelect:1
        };
        $scope.showMajor2=function(a){
            $scope.showColor3=1;
            $scope.jobInIndustryConf.isShow=true;
        }

		      //期望工作地
        $scope.jobInRegionIntension = {
            reValue:[],
            isShow:false,
            showValue:"请选择",
            maxSelect:1
        };
        $scope.showColorone=-1
        $scope.showHome = function(){
        	$scope.jobInRegionIntension.isShow=true;
        }
        $scope.jobInRegionIntension5 = {
            reValue:[],
            isShow:false,
            showValue:"自定义",
            maxSelect:1
        };
        $scope.showHome5=function(){
            $scope.jobInRegionIntension5.isShow=true;
        }
        $scope.jobInRegionIntension2 = {
            reValue:[],
            isShow:false,
            showValue:"自定义",
            maxSelect:1
        };
        $scope.jobInRegionIntensionQW = {
            reValue:[],
            isShow:false,
            showValue:"",
            maxSelect:1
        };
        $scope.showHOme2=function(){
            $scope.jobInRegionIntension2.isShow=true;
        }
        //期望工作地
        $scope.jobInRegionIntension3 = {
            reValue:[],
            isShow:false,
            showValue:"请选择",
            maxSelect:1
        };
        $scope.jobInRegionIntension4 = {
            reValue:[],
            isShow:false,
            showValue:"请选择",
            maxSelect:1
        };
        $scope.showHome4=function(){
            $scope.jobInRegionIntension4.isShow=true;
        }
        $scope.showHOme3=function(){
            $scope.jobInRegionIntension5.isShow=true;
        }

        /*招聘管理*/
       $scope.choiceAddress="请选择"
        $scope.savePriceId = function(item){
            $scope.areaName = $scope.regionName = "请选择"
            $scope.provinceId = item.provinceId;//省级地质ID
            $scope.choiceAddress = item.provinceName;
            var req ={
                type:"GET",
                uri:"getRegionListInProvince",
                data:{
                    provinceId:$scope.provinceId
                }
            };
            httpServices.getMap(req).success(function(response){
                $scope.$apply(function(){
                    $scope.Mycity = response.data;

                })
            });

        }
        $scope.areaName = $scope.regionName = "请选择"
        $scope.saveCItyId=function(item){
            $scope.areaName = "请选择"
            $scope.CItyId = item.regionId;
            $scope.regionName = item.regionName;
            var req ={
                type:"GET",
                uri:"getAreaListInRegionId",
                data:{
                    regionId:$scope.CItyId
                }
            };
            httpServices.getMap(req).success(function(response){
                $scope.$apply(function(){
                    $scope.areaCon= response.data;
                })
            });
        }
           $scope.saveArea = function(item){
            $scope.areaId = item.areaId;
            $scope.areaName=item.areaName
        }
        $scope.workPos=1;
        $scope.saveJobId=function(item){
            $state.go("companyDetailsCtrl",{modeifyWorkId:item.jobId})
        }
        $scope.saveJobId2=function(item){
        	$state.go("modifyCtrl",{JOBcompanyId:item.jobId})
        }
        $scope.workPosone=function(){
        	 $scope.workPos=1;
        	 getPlist();
        	
        }
        function getPlist(a,b){
        	 	 var req ={//默认全部内容
                    type:"GET",
                    uri:"getList",
                    data:{
                        closeStatus:"true",
                        pageNo:a,
                        pageSize:b,
                        all:"false"
                    }
                };
                httpServices.getJobLangularOne(req).success(function(response){
                    $scope.$apply(function(){
                        $scope.workPlist = response.data.list;
						 $scope.totalItem = response.data.Pagination.totalCount;
             			getListModelPlist();
                    })
                });
        	 }
         $scope.list = [];
        function getListModelPlist(){
            $scope.paginationConf = {
                currentPage: $scope.listParams.pageNo,
                totalItems: $scope.totalItem,
                //每页预览条数
                itemsPerPage:$scope.listParams.pageSize,
                //分页总数
                numberOfPages:Math.ceil($scope.totalItem/$scope.listParams.pageSize),
                // 实际分页长度
                pagesLength:5,
                perPageOptions: [10, 20, 30, 40, 50],
                onChange: function (currentPage) {
                    if(currentPage){
                        $scope.paginationConf.currentPage = currentPage;
                    }
                    $scope.list = [];
                    $scope.listParams.pageNo = $scope.paginationConf.currentPage;
					getPlist($scope.listParams.pageNo,$scope.listParams.pageSize);
                }
            };
        }
        
        $scope.cvdlist=[];
        $scope.workPosones=function(){
        	 $(".hideeInput").each(function(){
                    if($(this).attr("checked")){
                        var id = $(this).parents(".checbul").attr("id");
                        $scope.cvdlist.push(id)
                    }

                })
            /*$scope.type=true;*/
           if($scope.cvdlist.length>0){
	           	var a = $scope.cvdlist.join(',')
	          	var req ={//默认全部内容
	                    type:"PUT",
	                    uri:"refreshJob",
	                    data:{
	                       jobIds:a
	                    }
	                };
	                httpServices.getJobLangularOne(req).success(function(response){
	                    $scope.$apply(function(){
	                        $scope.cvdlist=[];
	                        alert("刷新职位成功")
	                        
	                            if($scope.workPos==1){
				                	var req ={//默认全部内容
				                    type:"GET",
				                    uri:"getList",
				                    data:{
				                        closeStatus:"true",
				                        pageNo:1,
				                        pageSize:30,
				                        all:"false"
				                    }
				                };
				                httpServices.getJobLangularOne(req).success(function(response){
				                    $scope.$apply(function(){
				                        $scope.workPlist = response.data.list;
										$scope.check2=false;
				             
				                    })
				                });
				             }else if($scope.workPos==2){
				             	 var req ={//默认全部内容
				                    type:"GET",
				                    uri:"getList",
				                    data:{
				                        closeStatus:"false",
				                        pageNo:a,
				                        pageSize:b,
				                        all:"false"
				                    }
				                };
				                httpServices.getJobLangularOne(req).success(function(response){
				                    $scope.$apply(function(){
				                        $scope.workPlist = response.data.list;
				                        $scope.check2=false;
				                    })
				                });
				             }
				                
	                        
	                        
	                    })
	                });
	                
	             
	                
           }else{
           	alert("请选择要刷新的职位")
           }
 
               
        }
        $scope.fons=1;
         $scope.listParams3 = {
            currentTcId: "",
            download: false,
            time: false,
            pageNo: 1,
            pageSize:10,
            all: false,
            typeId: "",
            scId: "",
            dcId: "",
            keyWord:"",
            //dcName scName 用于加入缓存 在详情中显示面包树导航
            dcName:"",
            scName:""
        };
        $scope.workPosall=function(){
            $scope.workPos=2;
            $scope.type=false;
            getConListss()
           
        }
          function getConListss(a){
                var req ={//默认全部内容
                    type:"GET",
                    uri:"getList",
                    data:{
                        closeStatus:"false",
                        pageNo:$scope.listParams3.pageNo,
                        pageSize:$scope.listParams3.pageSize,
                        all:"false"
                    }
                };
                httpServices.getJobLangularOne(req).success(function(response){
                    $scope.$apply(function(){
                        $scope.workPlist = response.data.list;
                        $scope.totalItem2 = response.data.Pagination.totalCount;
                        getListModelconlist();
                    })
                });

            }
        $scope.list2 = [];
        function getListModelconlist(){
            $scope.paginationConf = {
                currentPage: $scope.listParams3.pageNo,
                totalItems: $scope.totalItem2,
                //每页预览条数
                itemsPerPage:$scope.listParams3.pageSize,
                //分页总数
                numberOfPages:Math.ceil($scope.totalItem/$scope.listParams3.pageSize),
                // 实际分页长度
                pagesLength:5,
                perPageOptions: [10, 20, 30, 40, 50],
                onChange: function (currentPage) {
                    if(currentPage){
                        $scope.paginationConf.currentPage = currentPage;
                    }
                    $scope.list2 = [];
                    $scope.listParams3.pageNo = $scope.paginationConf.currentPage;
					getConListss($scope.listParams3.pageNo);
                }
            };
        }
        $scope.threCount=function(){
        	$scope.fons=1;
            if($scope.workPos==1){
                var req ={//默认全部内容
                    type:"GET",
                    uri:"getList",
                    data:{
                        closeStatus:"true",
                        pageNo:1,
                        pageSize:30,
                        all:"false"
                    }
                };
                httpServices.getJobLangularOne(req).success(function(response){
                    $scope.$apply(function(){
                        $scope.workPlist = response.data.list;
                        $scope.totalItem = response.data.Pagination.totalCount;
                        getListModel3();
                    })
                });
            }else if($scope.workPos==2){
                var req ={//默认全部内容
                    type:"GET",
                    uri:"getList",
                    data:{
                        closeStatus:"false",
                        pageNo:1,
                        pageSize:30,
                        all:"false"
                    }
                };
                httpServices.getJobLangularOne(req).success(function(response){
                    $scope.$apply(function(){
                        $scope.workPlist = response.data.list;
                        $scope.totalItem = response.data.Pagination.totalCount;

                    })
                });

            }

        }
        $scope.fityCount=function(){
        	$scope.fons=2;
            if($scope.workPos==1){
                var req ={//默认全部内容
                    type:"GET",
                    uri:"getList",
                    data:{
                        closeStatus:"true",
                        pageNo:1,
                        pageSize:50,
                        all:"false"
                    }
                };
                httpServices.getJobLangularOne(req).success(function(response){
                    $scope.$apply(function(){
                        $scope.workPlist = response.data.list;
                        $scope.totalItem = response.data.Pagination.totalCount;
                        getListModel3();
                    })
                });
            }else if($scope.workPos==2){
                var req ={//默认全部内容
                    type:"GET",
                    uri:"getList",
                    data:{
                        closeStatus:"false",
                        pageNo:1,
                        pageSize:50,
                        all:"false"
                    }
                };
                httpServices.getJobLangularOne(req).success(function(response){
                    $scope.$apply(function(){
                        $scope.workPlist = response.data.list;
                        $scope.totalItem = response.data.Pagination.totalCount;

                    })
                });

            }

        }
        $scope.oneHunder=function(){
        	$scope.fons=3;
            if($scope.workPos==1){
                var req ={//默认全部内容
                    type:"GET",
                    uri:"getList",
                    data:{
                        closeStatus:"true",
                        pageNo:1,
                        pageSize:100,
                        all:"false"
                    }
                };
                httpServices.getJobLangularOne(req).success(function(response){
                    $scope.$apply(function(){
                        $scope.workPlist = response.data.list;
                        $scope.totalItem = response.data.Pagination.totalCount;
                        getListModel3();
                    })
                });
            }else if($scope.workPos==2){
                var req ={//默认全部内容
                    type:"GET",
                    uri:"getList",
                    data:{
                        closeStatus:"false",
                        pageNo:1,
                        pageSize:100,
                        all:"false"
                    }
                };
                httpServices.getJobLangularOne(req).success(function(response){
                    $scope.$apply(function(){
                        $scope.workPlist = response.data.list;
                        $scope.totalItem = response.data.Pagination.totalCount;

                    })
                });

            }
        }


        $scope.tab=3;
            $scope.thred= $scope.Thirty =30;
            $scope.ficeth=$scope.frty=50;
            $scope.onezero=$scope.hundred=100;
            $scope.pageSizeThr=function(pagesize){
            	$scope.fontsss=1;
                if($scope.workPos==1){
                    getConList(1,pagesize)
                }else if($scope.workPos==2){
                    var req ={//默认全部内容
                        type:"GET",
                        uri:"getList",
                        data:{
                            closeStatus:"false",
                            pageNo:1,
                            pageSize:pagesize,
                            all:"false"
                        }
                    };
                    httpServices.getJobLangularOne(req).success(function(response){
                        $scope.$apply(function(){
                            $scope.workPlist = response.data.list;
                            $scope.totalItem = response.data.Pagination.totalCount;
                            getListModel2();
                        })
                    });
                }

            }
            $scope.fiece=function(pagesize){
            	$scope.fontsss=2;
                if($scope.workPos==1){
                    getConList(1,pagesize)
                }else if($scope.workPos==2){
                    var req ={//默认全部内容
                        type:"GET",
                        uri:"getList",
                        data:{
                            closeStatus:"false",
                            pageNo:1,
                            pageSize:pagesize,
                            all:"false"
                        }
                    };
                    httpServices.getJobLangularOne(req).success(function(response){
                        $scope.$apply(function(){
                            $scope.workPlist = response.data.list;
                            $scope.totalItem = response.data.Pagination.totalCount;
                            getListModel2();
                        })
                    });
                }
            }
            $scope.hunder=function(pagesize){
            	$scope.fontsss=3;
                if($scope.workPos==1){
                    getConList(1,pagesize)
                }else if($scope.workPos==2){
                    var req ={//默认全部内容
                        type:"GET",
                        uri:"getList",
                        data:{
                            closeStatus:"false",
                            pageNo:1,
                            pageSize:pagesize,
                            all:"false"
                        }
                    };
                    httpServices.getJobLangularOne(req).success(function(response){
                        $scope.$apply(function(){
                            $scope.workPlist = response.data.list;
                            $scope.totalItem = response.data.Pagination.totalCount;
                            getListModel2();
                        })
                    });
                }
            }
            function getConList(a,b){
                var req ={//默认全部内容
                    type:"GET",
                    uri:"getList",
                    data:{
                        closeStatus:"true",
                        pageNo:a,
                        pageSize:b,
                        all:"false"
                    }
                };
                httpServices.getJobLangularOne(req).success(function(response){
                    $scope.$apply(function(){
                        $scope.workPlist = response.data.list;
                        $scope.totalItem = response.data.Pagination.totalCount;
                        getListModel();
                    })
                });

            }
            getConList($scope.listParams.pageNo,$scope.listParams.pageSize)
            $scope.list = [];
            function getListModel(){

                $scope.paginationConf = {
                    currentPage: $scope.listParams.pageNo,
                    totalItems: $scope.totalItem,
                    //每页预览条数
                    itemsPerPage:$scope.listParams.pageSize,
                    //分页总数
                    numberOfPages:Math.ceil($scope.totalItem/$scope.listParams.pageSize),
                    // 实际分页长度
                    pagesLength:5,
                    perPageOptions: [10, 20, 30, 40, 50],
                    onChange: function (currentPage) {
                        if(currentPage){
                            $scope.paginationConf.currentPage = currentPage;
                        }
                        $scope.list = [];
                        $scope.listParams.pageNo = $scope.paginationConf.currentPage;
                        getConList($scope.listParams.pageNo,$scope.listParams.pageSize);
                    }
                };
            }

        $scope.saveText=function(a){
            $scope.textSearch= a;
        }
        $scope.seachworkPosti=function(){
          if($scope.textSearch != undefined){
              if($scope.type!=undefined){
                  var req ={//默认全部内容
                      type:"GET",
                      uri:"getList",
                      data:{
                          closeStatus:$scope.type,
                          keyWord:$scope.textSearch,
                          pageNo:$scope.listParams.pageNo,
                          pageSize:$scope.listParams.pageSize,
                          all:"false"
                      }
                  };
                  httpServices.getJobLangularOne(req).success(function(response){
                      $scope.$apply(function(){
                          $scope.workPlist = response.data.list;
                          $scope.totalItem = response.data.Pagination.totalCount;
                          getListModel();
                      })
                  });
              }else{
                  var req ={//默认全部内容
                      type:"GET",
                      uri:"getList",
                      data:{
                          closeStatus:"true",
                          keyWord:$scope.textSearch,
                          pageNo:$scope.listParams.pageNo,
                          pageSize:$scope.listParams.pageSize,
                          all:"false"
                      }
                  };
                  httpServices.getJobLangularOne(req).success(function(response){
                      $scope.$apply(function(){
                          $scope.workPlist = response.data.list;
                          $scope.totalItem = response.data.Pagination.totalCount;
                          getListModel();
                      })
                  });

              }

            }

        }
        $scope.index=[];
        $scope.checkd=function($index,item,idx){
            $scope.checkId = item.jobId;
            item.chcek1=!item.chcek1;

            if(item.chcek1){
                $($(".hidden-input")[$index]).attr("checked","true");
                $scope.index.push($scope.checkId)

            }else{
                $($(".hidden-input")[$index]).removeAttr("checked");
                if($scope.index.length==1){
                    $scope.index=[]
                }else{
                    $scope.index.splice($index,1)
                }

            }
            console.log($(".hideeInput").eq($index).prop('checked'))
            if($(".hideeInput").eq($index).prop('checked')){
                for(var i = 0;i < $(".hideeInput").length;i++){
                    if(!$(".hideeInput").eq(i).prop('checked')){
                        return;
                    }
                }
                $scope.check2 = true;
            }else{
                $scope.check2 = false;
            }






        }

        $scope.all=function(master,user){
            $scope.check2=!$scope.check2;
            if($scope.check2){
                $scope.onehide= false;
                $(".hidden-input").each(function(){
                    $(this).attr("checked","true");
                })
                $(".movecheck").each(function(){
                    $(this).addClass("hoverCHeck");
                })
            }else{
                $scope.check=false;
                $scope.onehide= true;
                $(".hidden-input").each(function(){
                    $(this).removeAttr("checked");
                })
                $(".movecheck").each(function(){
                    $(this).removeClass("hoverCHeck");
                })
            }


        }
        $scope.deletes=function(item){
        	 var msg = "您真的确定要删除吗？删除后将从列表中消失\n\n请确认！";
        	 if (confirm(msg)==true){
                    var req ={//默认全部内容
                        type:"DELETE",
                        uri:"deleteJob",
                        data:{
                            jobIds:item.jobId
                        }
                    };
                    httpServices.getJobLangularOne(req).success(function(response){
                        $scope.$apply(function(){
                            /*重新来一百年*/
                           if($scope.workPos==1){
                           		var req ={//默认全部内容
                                type:"GET",
                                uri:"getList",
                                data:{
                                    closeStatus:"true",

                                    all:"false"
                                }
                            };
                            httpServices.getJobLangularOne(req).success(function(response){
                                $scope.$apply(function(){
                                   
                                    $scope.workPlist = response.data.list;
                                    $scope.totalItem = response.data.Pagination.totalCount;
                                    getListModel();
                                })
                            });

                           }else{
                           	var req ={//默认全部内容
                                type:"GET",
                                uri:"getList",
                                data:{
                                    closeStatus:"false",

                                    all:"false"
                                }
                            };
                            httpServices.getJobLangularOne(req).success(function(response){
                                $scope.$apply(function(){
                                    
                                    $scope.workPlist = response.data.list;
                                    $scope.totalItem = response.data.Pagination.totalCount;
                                    getListModel();
                                })
                            });

                           }
                            
                        })
                    });
                }else{
                    return false;
                }
        }
        $scope.sure=false;
        $scope.delete=function(){
            var msg = "您真的确定要删除吗？删除后将从列表中消失\n\n请确认！";
            $(".hidden-input").each(function(){
                    if($(this).attr("checked")){
                        var id = $(this).parents(".checbul").attr("id");
                        $scope.index.push(id)
                        $scope.chcek1=false;
                        $scope.sure=true;
                    }

                })
            if($scope.sure==false){
                    $scope.sure=false;
                    alert("选择一个职位删除")
            }else{
                $scope.sure=false;
                if (confirm(msg)==true){
                    var req ={//默认全部内容
                        type:"DELETE",
                        uri:"deleteJob",
                        data:{
                            jobIds:$scope.index.join(",")
                        }
                    };
                    httpServices.getJobLangularOne(req).success(function(response){
                        $scope.$apply(function(){
                             if($scope.workPos==1){
                           		var req ={//默认全部内容
                                type:"GET",
                                uri:"getList",
                                data:{
                                    closeStatus:"true",

                                    all:"false"
                                }
                            };
                            httpServices.getJobLangularOne(req).success(function(response){
                                $scope.$apply(function(){
                                   
                                    $scope.workPlist = response.data.list;
                                    $scope.totalItem = response.data.Pagination.totalCount;
                                    getListModel();
                                })
                            });

                           }else{
                           	var req ={//默认全部内容
                                type:"GET",
                                uri:"getList",
                                data:{
                                    closeStatus:"false",

                                    all:"false"
                                }
                            };
                            httpServices.getJobLangularOne(req).success(function(response){
                                $scope.$apply(function(){
                              
                                    $scope.workPlist = response.data.list;
                                    $scope.totalItem = response.data.Pagination.totalCount;
                                    getListModel();
                                })
                            });

                           }
                            

                        })
                    });
                }else{
                    return false;
                }

                }

        }
        /*暂停此简历*/

        $scope.pause=function(item,$index,b){
        	$($(".iconpuse")[$index]).hide();
        	item.show=1;
            $scope.showpause=$index;
            var id = item.jobId;
            var req ={//默认全部内容
                type:"PUT",
                uri:"pause",
                data:{
                    jobId:id
                }
            };
            httpServices.getJobLangularOne(req).success(function(response){
                $scope.$apply(function(){
                    if(response.code==0){
                        alert("已暂停发布")
                        $scope.hidean=2;

                       $($(".iconpuse2")[$index]).show();
                    }
                })
            });
        }
        /*应聘管理*/
        $scope.serarchCon2 = $scope.serarchCon="不限";
        $scope.sex = [
            {
                id:0,
                name:"男"
            },
            {
                id:1,
                name:"女"
            }
        ]
        $scope.saveSearchPos=function(a){
            $scope.SearchPos=a;
        }
        $scope.ManName="不限"
        $scope.saveManId=function(item){
            $scope.SexId = item.id;
            $scope.ManName=item.name;
        }
        $scope.age = [
            {
                name:0
            },
            {
                name:1
            },
            {
                name:2
            },
            {
                name:3
            },
            {
                name:4
            },
            {
                name:5
            },
            {
                name:6
            },
            {
                name:7
            },
            {
                name:9
            },
            {
                name:10
            }
        ]
       $scope.workageOne=$scope.workExp="不限";
        $scope.saveWorkExp=function(item){
            $scope.workExp= item.name;
        }
        $scope.saveNum=function(item){
            $scope.workageOne=item.name;
        }
        $scope.ageNum = [];
        for(var i=18;i<=60;i++){
            var obj = {
                name:i
            }
            $scope.ageNum.push(obj)
        }
        $scope.ageCon2=$scope.ageCon="不限";
        $scope.SaveAgeNum=function(item){
            $scope.ageCon = item.name;
        }
        $scope.saveAgeNum2=function(item){
            $scope.ageCon2 = item.name;
            $scope.agesCOn = item.name
        }
        $scope.degere="不限";
        $scope.saveEdu2=function(item){
            $scope.degere = item.dictName;
            $scope.EduId = item.dictId;
        }
        
        
      
        
        $scope.screen=function() {
			if($scope.resumTab==1){
				getresumeCons();
			}else if($scope.resumTab==2){
				getreumelibrary2s();
			}
              
        }
        function getresumeCons(a,b){
                var req ={//默认全部内容
                    type:"GET",
                    uri:"getCvdDeliveryList",
                    data:{
                    	keyWord: $scope.SearchPos != undefined ? $scope.SearchPos : "",
                        sexId: $scope.SexId != undefined ? $scope.SexId : "",
                        functionId: typeof($scope.jobInJobConf.detail)!="undefined"&&$scope.jobInJobConf.detail != ""?$scope.jobInJobConf.detail[0].fdcId:"",//职能类别id
                        eduId: typeof($scope.EduId)!="undefined"? $scope.EduId : "",
                        startAge: $scope.ageCon!="不限"?  $scope.ageCon : "",
                        endAge: $scope.ageCon2!="不限"?  $scope.ageCon2 : "",
                        pageNo: $scope.listParams2.pageNo,
                        pageSize: $scope.listParams2.pageSize,
                        all: "false"
                    }
                };
                 if(typeof ($scope.jobInRegionIntension.reValue)!= "undefined"){
	                req.data.pronviceId = $scope.jobInRegionIntension.reValue.length == 0?"":$scope.jobInRegionIntension.reValue[0].provinceId;
	                req.data.regionId = $scope.jobInRegionIntension.reValue.length == 0?"":$scope.jobInRegionIntension.reValue[0].regionId;
	                req.data.areaId = $scope.jobInRegionIntension.reValue.length == 0?"":$scope.jobInRegionIntension.reValue[0].areaId;
	            }
                httpServices.getMoney(req).success(function(response){
                    $scope.$apply(function(){
                        $scope.resumeLists = response.data.list;
                        $scope.totalItem=response.data.Pagination.totalCount;
                        $scope.totalCouns = response.data.Pagination.totalCount;
                        getListModelresunms();
                    })
                });
            }
            $scope.list = [];
            function getListModelresunms(){

                $scope.paginationConf = {
                    currentPage: $scope.listParams2.pageNo,
                    totalItems: $scope.totalItem,
                    //每页预览条数
                    itemsPerPage:$scope.listParams2.pageSize,
                    //分页总数
                    numberOfPages:Math.ceil($scope.totalItem/$scope.listParams2.pageSize),
                    // 实际分页长度
                    pagesLength:5,
                    perPageOptions: [10, 20, 30, 40, 50],
                    onChange: function (currentPage) {
                        if(currentPage){
                            $scope.paginationConf.currentPage = currentPage;
                        }
                        $scope.list = [];
                        $scope.listParams2.pageNo = $scope.paginationConf.currentPage;
                        getresumeCons($scope.listParams2.pageNo,$scope.listParams2.pageSize);
                    }
                };
            }
        
        function getreumelibrary2s() {
                    var req ={//默认全部内容
		                type:"GET",
		                uri:"getCvdCollectionList",
		                data:{
		                   keyWord: $scope.SearchPos != undefined ? $scope.SearchPos : "",
	                        sexId: $scope.SexId != undefined ? $scope.SexId : "",
	                        functionId: typeof($scope.jobInJobConf.detail)!="undefined"&&$scope.jobInJobConf.detail != ""?$scope.jobInJobConf.detail[0].fdcId:"",//职能类别id
	                        eduId: typeof($scope.EduId)!="undefined"? $scope.EduId : "",
	                        startAge: $scope.ageCon!="不限"?  $scope.ageCon : "",
	                        endAge: $scope.ageCon2!="不限"?  $scope.ageCon2 : "",
	                        pageNo: $scope.listParams2.pageNo,
	                        pageSize: $scope.listParams2.pageSize,
                       		all: "false",
		                    type:"0"
		                }
		            };
		             if(typeof ($scope.jobInRegionIntension.reValue)!= "undefined"){
	                req.data.pronviceId = $scope.jobInRegionIntension.reValue.length == 0?"":$scope.jobInRegionIntension.reValue[0].provinceId;
	                req.data.regionId = $scope.jobInRegionIntension.reValue.length == 0?"":$scope.jobInRegionIntension.reValue[0].regionId;
	                req.data.areaId = $scope.jobInRegionIntension.reValue.length == 0?"":$scope.jobInRegionIntension.reValue[0].areaId;
	            }
		            httpServices.getMoney(req).success(function(response){
		                $scope.$apply(function(){
		                    $scope.resumeLists = response.data.list;
		                    $scope.totalItem=response.data.Pagination.totalCount;
		                    $scope.totalCouns = response.data.Pagination.totalCount;
		                    getListModellib();
		                })
		            });
                }
 function getListModelliseb(){

            $scope.paginationConf = {
                currentPage: $scope.listParams2.pageNo,
                totalItems: $scope.totalItem,
                //每页预览条数
                itemsPerPage:$scope.listParams2.pageSize,
                //分页总数
                numberOfPages:Math.ceil($scope.totalItem/$scope.listParams2.pageSize),
                // 实际分页长度
                pagesLength:5,
                perPageOptions: [10, 20, 30, 40, 50],
                onChange: function (currentPage) {
                    if(currentPage){
                        $scope.paginationConf.currentPage = currentPage;
                    }
                    $scope.list = [];
                    $scope.listParams2.pageNo = $scope.paginationConf.currentPage;
                    getreumelibrary2s($scope.listParams2.pageNo,$scope.listParams2.pageSize);
                }
            };
        }
        $scope.resumId = [];
        $scope.resumId2 = [];
        $scope.savechekresum=function(item,$index){
            var id = item.vdId;
            var id2 = item.vcId;
            item.chcekre=!item.chcekre;
            if(item.chcekre){
                $($(".hidden-input2")[$index]).attr("checked","true");
                $scope.resumId.push(id);
            }else{
                $($(".hidden-input2")[$index]).removeAttr("checked");
                if($scope.resumId.length==1){
                    $scope.resumId=[];
                }else{
                    $scope.resumId.splice($index,1);
                }
            }
            if($(".hidden-input2").eq($index).prop('checked')){
                for(var i = 0;i < $(".hidden-input2").length;i++){
                    if(!$(".hidden-input2").eq(i).prop('checked')){
                        return;
                    }
                }
                $scope.checkresum = true;
            }else{
                $scope.checkresum = false;
            }



        }
        $scope.resumAll=function(){
            $scope.checkresum=!$scope.checkresum;
            if($scope.checkresum){
                $(".hidden-input2").each(function(){
                    $(this).attr("checked","true");
                })
                $(".moveHodes").each(function(){
                    $(this).addClass("hoverCHeck");
                })
                $scope.chcekre=true;
            }else{
                $(".hidden-input2").each(function(){
                    $(this).removeAttr("checked");
                })
                $(".moveHodes").each(function(){
                    $(this).removeClass("hoverCHeck");
                })
                $scope.chcekre=false;
            }
        }
        $scope.InterviewCon="请选择";
        $scope.commit=function(){
        	 $scope.resumId2=[];
            $(".hidden-input2").each(function() {
                if ($(this).attr("checked")) {
                    var id = $(this).parents(".psoose").attr("id");
                    $scope.resumId2.push(id);
                }
            })
            
            if($scope.resumId2.length == 0){
            	alert("还没有选择哦")
            }else{
            	 $scope.InterviewCon="已录取";
            	var req ={//默认全部内容
                type:"PUT",
                uri:"batchUpdateCvdStatus",
                data:{
                    vcIds: $scope.resumId2.join(","),
                    status:"3"
                }
            };
            httpServices.getMoney(req).success(function(response){
                $scope.$apply(function(){
                    $(".hoverCHeck").each(function() {
                        $(this).removeClass("hoverCHeck")
                    })
                    if(response.msg == "success"){
                        alert("标记成功")
                        var req ={//默认全部内容
                            type:"GET",
                            uri:"getCvdCollectionList",
                            data:{
                                all:"false"
                            }
                        };
                        httpServices.getMoney(req).success(function(response){
                            $scope.$apply(function(){
                                $scope.resumeLists = response.data.list;
                                
                                $scope.totalCouns = response.data.Pagination.totalCount;
                                $scope.resumId2=[];
	                                $(".hidden-input2").each(function() {
	                                	$(this).removeAttr("checked")
						                
						            })
                            })
                        });
                    }else{
                        alert("未选择标记")
                    }
                })
            });
            }
            
        }
        $scope.commit2=function(){
        	$scope.resumId2=[];
        	  $(".hidden-input2").each(function() {
                if ($(this).attr("checked")) {
                    var id = $(this).parents(".positionss").attr("id");
                    $scope.vdid=id
                    $scope.resumId2.push(id);

                }
            })
			if($scope.resumId2.length == 0){
				alert("还没有选择哦")
			}else{
				if($scope.resumId2.length==1){
					var a = $scope.vdid
				}else{
					 var a = $scope.resumId2.join(",")
				}
				 $scope.InterviewCon="已面试";
				
				var req ={//默认全部内容
                type:"PUT",
                uri:"batchUpdateCvdType",
                data:{
                    vdIds: a,
                    type:"3"
                }
            };
            httpServices.getMoney(req).success(function(response){
                $scope.$apply(function(){

                    $(".hoverCHeck").each(function() {
                        $(this).removeClass("hoverCHeck")
                    })
                    if(response.msg == "success"){
                        alert("标记成功")
	                      var req ={//默认全部内容
			                    type:"GET",
			                    uri:"getCvdDeliveryList",
			                    data:{
			                        pageNo:$scope.listParams2.pageNo,
			                        pageSize:10,
			                        all:"false",
			                        type:'0'
			                    }
			                };
			                httpServices.getMoney(req).success(function(response){
			                    $scope.$apply(function(){
			                        $scope.resumeLists = response.data.list;
			                       
			                        $scope.totalCouns = response.data.Pagination.totalCount;
			                        $scope.resumId2=[];
	                                $(".hidden-input2").each(function() {
	                                	$(this).removeAttr("checked")
						                
						            })
			                    })
			                });
                        
                    }else{
                        alert("未选择标记")
                    }
                })
            });
			}
			
        }
        $scope.interview2=function(){
        	$scope.resumId2=[];
        	  $(".hidden-input2").each(function() {
                if ($(this).attr("checked")) {
                    var id = $(this).parents(".psoose").attr("id");
                    $scope.vdid=id
                    $scope.resumId2.push(id);

                }
            })
			
			if($scope.resumId2.length == 0){
				alert("还没有选择哦")
			}else{
				if($scope.resumId2.length==1){
					var a = $scope.vdid
				}else{
					 var a = $scope.resumId2.join(",")
				}
				 $scope.InterviewCon="已面试";
				
				  var req ={//默认全部内容
                type:"PUT",
                uri:"batchUpdateCvdType",
                data:{
                    vdIds: a,
                    type:"1"
                }
            };
            httpServices.getMoney(req).success(function(response){
                $scope.$apply(function(){

                    $(".hoverCHeck").each(function() {
                        $(this).removeClass("hoverCHeck")
                    })
                    if(response.msg == "success"){
                        alert("标记成功")
                    
                        	 var req ={//默认全部内容
		                    type:"GET",
		                    uri:"getCvdDeliveryList",
		                    data:{
		                        pageNo:$scope.listParams2.pageNo,
		                        pageSize:10,
		                        all:"false",
		                        type:'0'
		                    }
		                };
		                httpServices.getMoney(req).success(function(response){
		                    $scope.$apply(function(){
		                        $scope.resumeLists = response.data.list;
		                       
		                        $scope.totalCouns = response.data.Pagination.totalCount;
		             			$scope.resumId2=[];
	                                $(".hidden-input2").each(function() {
	                                	$(this).removeAttr("checked")
						                
						            })
		                    })
                	});
               
                        
                    }else{
                        alert("未选择标记")
                    }
                })
            });
			}
			
			
        }
        $scope.interview=function(){//批量标记为已经面试
             $scope.resumId2=[];
            $(".hidden-input2").each(function() {
                if ($(this).attr("checked")) {
                    var id = $(this).parents(".psoose").attr("id");
                    $scope.vdid=id
                    $scope.resumId2.push(id);

                }
            })
		
			if($scope.resumId2.length == 0){
				alert("还没有选择哦")
			}else{
				if($scope.resumId2.length==1){
					var a = $scope.vdid
				}else{
					 var a = $scope.resumId2.join(",")
				}
				 $scope.InterviewCon="已面试";
				
				  var req ={//默认全部内容
	                type:"PUT",
	                uri:"batchUpdateCvdStatus",
	                data:{
	                    vcIds: a,
	                    status:"1"
	                }
	            };
	            httpServices.getMoney(req).success(function(response){
	                $scope.$apply(function(){
	
	                    $(".hoverCHeck").each(function() {
	                        $(this).removeClass("hoverCHeck")
	                    })
	                    if(response.msg == "success"){
	                        alert("标记成功")

	                        	var req ={//默认全部内容
	                            type:"GET",
	                            uri:"getCvdCollectionList",
	                            data:{
	                                all:"false"
	                            }
	                        };
	                        httpServices.getMoney(req).success(function(response){
	                            $scope.$apply(function(){
	                                $scope.resumeLists = response.data.list;
	                                $scope.totalItem=response.data.Pagination.totalCount;
	                                $scope.totalCouns = response.data.Pagination.totalCount;
	                                $scope.resumId2=[];
	                                $(".hidden-input2").each(function() {
	                                	$(this).removeAttr("checked")
						                
						            })
	                            })
	                        });
                       
                        
                    }else{
                        alert("未选择标记")
                    }
                })
            });
			}
          
        }


        $scope.remoceresum=function(){
            $(".hidden-input2").each(function() {
                if ($(this).attr("checked")) {
                    var id = $(this).parents(".psowork").attr("id");
                    $scope.resumId.push(id);
                }
            })
            if($scope.resumId.length == 0){
            	alert("还没选择哦")
            }else{
            	 var req ={//默认全部内容
                type:"PUT",
                uri:"batchMoveCvd",
                data:{
                    vdIds: $scope.resumId.join(",")
                }
            };
            httpServices.getMoney(req).success(function(response){
                $scope.$apply(function(){

                    if(response.msg=="success"){
                        alert("已经到达简历库")
                        function getresume(a,b){
                            var req ={//默认全部内容
                                type:"GET",
                                uri:"getCvdDeliveryList",
                                data:{
                                    pageNo:a,
                                    pageSize:b,
                                    all:"false"
                                }
                            };
                            httpServices.getMoney(req).success(function(response){
                                $scope.$apply(function(){
                                    $scope.resumeLists = response.data.list;
                                    $scope.totalItem=response.data.Pagination.totalCount;
                                    $scope.totalCouns = response.data.Pagination.totalCount;
                                    $scope.checkresum=$scope.chcekre=false;
                                    getListModel();
                                })
                            });
                        }
                        getresume();
                        $scope.list = [];
                        function getListModel(){
                            $scope.paginationConf = {
                                currentPage: $scope.listParams.pageNo,
                                totalItems: $scope.totalItem,
                                //每页预览条数
                                itemsPerPage:$scope.listParams.pageSize,
                                //分页总数
                                numberOfPages:Math.ceil($scope.totalItem/$scope.listParams.pageSize),
                                // 实际分页长度
                                pagesLength:5,
                                perPageOptions: [10, 20, 30, 40, 50],
                                onChange: function (currentPage) {
                                    if(currentPage){
                                        $scope.paginationConf.currentPage = currentPage;
                                    }
                                    $scope.list = [];
                                    $scope.listParams.pageNo = $scope.paginationConf.currentPage;
                                    getresume($scope.listParams.pageNo,$scope.listParams.pageSize);
                                }
                            };
                        }
                    }else{
                        alert("请求失败")
                    }
                })
            });
            }
           
        }
     
        $scope.resumTabone=function(){
            $scope.resumTab=1;
            $scope.allTab=1;

            getresume2s();
           function getresume2s(a,b){
                var req ={//默认全部内容
                    type:"GET",
                    uri:"getCvdDeliveryList",
                    data:{
                        pageNo:a,
                        pageSize:10,
                        all:"false",
                        type:'0'
                    }
                };
                httpServices.getMoney(req).success(function(response){
                    $scope.$apply(function(){
                        $scope.resumeLists = response.data.list;
                        $scope.totalItem=response.data.Pagination.totalCount;
                        $scope.totalCouns = response.data.Pagination.totalCount;
                        getListModelresunm();
                    })
                });
            }
            $scope.list = [];
            function getListModelresunm(){

                $scope.paginationConf = {
                    currentPage: $scope.listParams2.pageNo,
                    totalItems: $scope.totalItem,
                    //每页预览条数
                    itemsPerPage:$scope.listParams2.pageSize,
                    //分页总数
                    numberOfPages:Math.ceil($scope.totalItem/$scope.listParams2.pageSize),
                    // 实际分页长度
                    pagesLength:5,
                    perPageOptions: [10, 20, 30, 40, 50],
                    onChange: function (currentPage) {
                        if(currentPage){
                            $scope.paginationConf.currentPage = currentPage;
                        }
                        $scope.list = [];
                        $scope.listParams2.pageNo = $scope.paginationConf.currentPage;
                        getresume2s($scope.listParams2.pageNo,$scope.listParams2.pageSize);
                    }
                };
            }
        }
        $scope.resumTabs2=function(){
        
            $scope.resumTab=2;
            $scope.allTab=1;
            getreumelibrary();
        }
        function getreumelibrary(a,b){
            var req ={//默认全部内容
                type:"GET",
                uri:"getCvdCollectionList",
                data:{
                    pageNo:$scope.listParams2.pageNo,
                    pageSize:10,
                    all:"false",
                    type:"0"
                }
            };
            httpServices.getMoney(req).success(function(response){
                $scope.$apply(function(){
                    $scope.resumeLists = response.data.list;
                    $scope.totalItem=response.data.Pagination.totalCount;
                    $scope.totalCouns = response.data.Pagination.totalCount;
                    getListModellib();
                })
            });
        }
        function getListModellib(){

            $scope.paginationConf = {
                currentPage: $scope.listParams2.pageNo,
                totalItems: $scope.totalItem,
                //每页预览条数
                itemsPerPage:$scope.listParams2.pageSize,
                //分页总数
                numberOfPages:Math.ceil($scope.totalItem/$scope.listParams2.pageSize),
                // 实际分页长度
                pagesLength:5,
                perPageOptions: [10, 20, 30, 40, 50],
                onChange: function (currentPage) {
                    if(currentPage){
                        $scope.paginationConf.currentPage = currentPage;
                    }
                    $scope.list = [];
                    $scope.listParams2.pageNo = $scope.paginationConf.currentPage;
                    getreumelibrary($scope.listParams2.pageNo,$scope.listParams2.pageSize);
                }
            };
        }
        /*职位管理*/

        $scope.Position=function(){
        	$scope.workPos=1;
            $scope.showWork=1;
             function getConListres(a,b){
                var req ={//默认全部内容
                    type:"GET",
                    uri:"getList",
                    data:{
                        closeStatus:"true",
                        pageNo:a,
                        pageSize:b,
                        all:"false"
                    }
                };
                httpServices.getJobLangularOne(req).success(function(response){
                    $scope.$apply(function(){
                        $scope.workPlist = response.data.list;
                        $scope.totalItem = response.data.Pagination.totalCount;
                        getListModelres();
                    })
                });

            }
 			 getConListres()
        $scope.list = [];
        function getListModelres(){
            $scope.paginationConf = {
                currentPage: $scope.listParams.pageNo,
                totalItems: $scope.totalItem,
                //每页预览条数
                itemsPerPage:$scope.listParams.pageSize,
                //分页总数
                numberOfPages:Math.ceil($scope.totalItem/$scope.listParams.pageSize),
                // 实际分页长度
                pagesLength:5,
                perPageOptions: [10, 20, 30, 40, 50],
                onChange: function (currentPage) {
                    if(currentPage){
                        $scope.paginationConf.currentPage = currentPage;
                    }
                    $scope.list = [];
                    $scope.listParams.pageNo = $scope.paginationConf.currentPage;
					 getConListres()
                }
            };

        }
        }
        $scope.serachResum=function(){
        	getcvalist();
            $scope.showWork=3;
            function getWorkStu(){//最低学历
                var req ={
                    type:"GET",
                    uri:"getJobEducation",
                    data:{}
                };
                httpServices.getJobLangularOne(req).success(function(response){
                    $scope.$apply(function(){
                        $scope.Education = response.data;
                    })
                });
            }
            getWorkStu();
            $scope.showWorkBody=4;
            function getLanguage(){
                var req ={
                    type:"GET",
                    uri:"getLanguage",
                    data:{}
                };
                httpServices.getJobLangularOne(req).success(function(response){
                    $scope.$apply(function(){
                        $scope.languaOne = response.data;
                    })
                });
            }
            getLanguage();
            function getLanguaOnesize(){
                var req ={
                    type:"GET",
                    uri:"getLanguageGrade",
                    data:{}
                };
                httpServices.getJobLangularOne(req).success(function(response){
                    $scope.$apply(function(){

                        $scope.languaOneSize = response.data;
                    })
                });
            }
            getLanguaOnesize();
            function getworkStadus(){
                var req ={
                    type:"GET",
                    uri:"getJobStatus",
                    data:{}
                };
                httpServices.getMoney(req).success(function(response){
                    $scope.$apply(function(){
                        $scope.JobStatus = response.data;
                    })
                });
            }
            getworkStadus();
            function getCommoney(){
                var req ={
                    type:"GET",
                    uri:"getSalaryCount",
                    data:{}
                };
                httpServices.getMoney(req).success(function(response){
                    $scope.$apply(function(){
                        $scope.monye=response.data;
                    })
                });
            }
            getCommoney();
            function getCompanyGuild(){
                var req ={
                    type:"GET",
                    uri:"getCompanyGuild",
                    data:{}
                };
                httpServices.getMoney(req).success(function(response){
                    $scope.$apply(function(){
                        $scope.CompanyGu=response.data;
                    })
                });
            }
            getCompanyGuild();
  

        }
           $scope.listParams2 = {
            currentTcId: "",
            download: false,
            time: false,
            pageNo: 1,
            pageSize:10,
            all: false,
            typeId: "",
            scId: "",
            dcId: "",
            keyWord:"",
            //dcName scName 用于加入缓存 在详情中显示面包树导航
            dcName:"",
            scName:""
        };
        $scope.Candidates=function(){
        	$scope.resumTab=1;
            $scope.showWork=2;
            $scope.allTab=1;
            getResum();
            function getResum(){
            	var req ={//默认全部内容
                type:"GET",
                uri:"getCvdDeliveryList",
                data:{
                	pageNo:$scope.listParams2.pageNo,
                    pageSize:$scope.listParams2.pageSize,
                    all:"false",
                    type:0
                }
            };
            httpServices.getMoney(req).success(function(response){
                $scope.$apply(function(){
                	
                    $scope.resumeLists = response.data.list;
                    $scope.totalItem=response.data.Pagination.totalCount;
                    $scope.totalCouns = response.data.Pagination.totalCount;
                    getListModelresunm2();
                })
            });
            }
            $scope.list = [];
            function getListModelresunm2(){

                $scope.paginationConf = {
                    currentPage: $scope.listParams2.pageNo,
                    totalItems: $scope.totalItem,
                    //每页预览条数
                    itemsPerPage:$scope.listParams2.pageSize,
                    //分页总数
                    numberOfPages:Math.ceil($scope.totalItem/$scope.listParams2.pageSize),
                    // 实际分页长度
                    pagesLength:5,
                    perPageOptions: [10, 20, 30, 40, 50],
                    onChange: function (currentPage) {
                        if(currentPage){
                            $scope.paginationConf.currentPage = currentPage;
                        }
                        $scope.list = [];
                        $scope.listParams2.pageNo = $scope.paginationConf.currentPage;
                        getResum($scope.listParams2.pageNo,$scope.listParams2.pageSize,0);
                    }
                };
            }
            function getMap(){
                var req ={
                    type:"GET",
                    uri:"getProvinceList",
                    data:{}
                };
                httpServices.getMap(req).success(function(response){
                    $scope.$apply(function(){
                        $scope.provinceCon2 = response.data;

                    })
                });

            }
            getMap();
            function getWorkStu(){//最低学历
                var req ={
                    type:"GET",
                    uri:"getJobEducation",
                    data:{}
                };
                httpServices.getJobLangularOne(req).success(function(response){
                    $scope.$apply(function(){
                        $scope.EducationCon = response.data;
                    })
                });
            }
            getWorkStu();
        }
        $scope.ResumeToady=function(){
            $scope.allTab=2;
           if($scope.resumTab==1){
               var req ={//默认全部内容
                   type:"GET",
                   uri:"getCvdDeliveryList",
                   data:{
                       all:"false",
                       type:"1"
                   }
               };
               httpServices.getMoney(req).success(function(response){
                   $scope.$apply(function(){

                       $scope.resumeLists = response.data.list;
                       $scope.totalItem=response.data.Pagination.totalCount;
                       $scope.totalCouns = response.data.Pagination.totalCount;

                   })
               });

           }else if($scope.resumTab==2){
                   var req ={//默认全部内容
                       type:"GET",
                       uri:"getCvdCollectionList",
                       data:{
                           type:"1",
                           all:"false"
                       }
                   };
                   httpServices.getMoney(req).success(function(response){
                       $scope.$apply(function(){
                           $scope.resumeLists = response.data.list;
                           $scope.totalItem=response.data.Pagination.totalCount;
                           $scope.totalCouns = response.data.Pagination.totalCount;
                           getListModel();
                       })
                   });
           }
        }

        $scope.Myweek=function(){
            $scope.allTab=3;
            if($scope.resumTab==1){
                var req ={//默认全部内容
                    type:"GET",
                    uri:"getCvdDeliveryList",
                    data:{
                        all:"false",
                        type:"2"
                    }
                };
                httpServices.getMoney(req).success(function(response){
                    $scope.$apply(function(){

                        $scope.resumeLists = response.data.list;
                        $scope.totalItem=response.data.Pagination.totalCount;
                        $scope.totalCouns = response.data.Pagination.totalCount;

                    })
                });

            }else if($scope.resumTab==2){
                var req ={//默认全部内容
                    type:"GET",
                    uri:"getCvdCollectionList",
                    data:{
                        type:"2",
                        all:"false"
                    }
                };
                httpServices.getMoney(req).success(function(response){
                    $scope.$apply(function(){
                        $scope.resumeLists = response.data.list;
                        $scope.totalItem=response.data.Pagination.totalCount;
                        $scope.totalCouns = response.data.Pagination.totalCount;
                        getListModel();
                    })
                });

            }

        }
        $scope.Month=function(){
            $scope.allTab=4;
            if($scope.resumTab==1){
                var req ={//默认全部内容
                    type:"GET",
                    uri:"getCvdDeliveryList",
                    data:{
                        all:"false",
                        type:"3"
                    }
                };
                httpServices.getMoney(req).success(function(response){
                    $scope.$apply(function(){

                        $scope.resumeLists = response.data.list;
                        $scope.totalItem=response.data.Pagination.totalCount;
                        $scope.totalCouns = response.data.Pagination.totalCount;

                    })
                });

            }else if($scope.resumTab==2){
                var req ={//默认全部内容
                    type:"GET",
                    uri:"getCvdCollectionList",
                    data:{
                        type:"3",
                        all:"false"
                    }
                };
                httpServices.getMoney(req).success(function(response){
                    $scope.$apply(function(){
                        $scope.resumeLists = response.data.list;
                        $scope.totalItem=response.data.Pagination.totalCount;
                        $scope.totalCouns = response.data.Pagination.totalCount;
                    })
                });

            }

        }
        $scope.upMonth=function(){
            $scope.allTab=5;
            if($scope.resumTab==1){
                var req ={//默认全部内容
                    type:"GET",
                    uri:"getCvdDeliveryList",
                    data:{
                        all:"false",
                        type:"4"
                    }
                };
                httpServices.getMoney(req).success(function(response){
                    $scope.$apply(function(){

                        $scope.resumeLists = response.data.list;
                        $scope.totalItem=response.data.Pagination.totalCount;
                        $scope.totalCouns = response.data.Pagination.totalCount;

                    })
                });

            }else if($scope.resumTab==2){
                var req ={//默认全部内容
                    type:"GET",
                    uri:"getCvdCollectionList",
                    data:{
                        type:"4",
                        all:"false"
                    }
                };
                httpServices.getMoney(req).success(function(response){
                    $scope.$apply(function(){
                        $scope.resumeLists = response.data.list;
                        $scope.totalItem=response.data.Pagination.totalCount;
                        $scope.totalCouns = response.data.Pagination.totalCount;
                    })
                });

            }



        }
        $scope.$on("123",function(a,b,c){
            var startTime = b;
            var endTime = c;
            if($scope.resumTab==1){
                var req ={
                    type:"GET",
                    uri:"getCvdDeliveryList",
                    data:{
                        all:"false",
                        type:"5",
                        startTime:startTime,
                        endTime:endTime
                    }
                };
                httpServices.getMoney(req).success(function(response){
                    $scope.$apply(function(){
                        $scope.resumeLists = response.data.list;
                        $scope.totalItem=response.data.Pagination.totalCount;
                        $scope.totalCouns = response.data.Pagination.totalCount;

                    })
                });
            }else if($scope.resumTab==2){

                var req ={//默认全部内容
                    type:"GET",
                    uri:"getCvdCollectionList",
                    data:{
                        all:"false",
                        type:"5",
                        startTime:startTime,
                        endTime:endTime
                    }
                };
                httpServices.getMoney(req).success(function(response){
                    $scope.$apply(function(){
                        $scope.resumeLists = response.data.list;
                        $scope.totalItem=response.data.Pagination.totalCount;
                        $scope.totalCouns = response.data.Pagination.totalCount;
                    })
                });



            }

        })
        $scope.thred=30;
        $scope.ficeth=50;
        $scope.onezero=100;
   
        $scope.pagnNoresum=function(){
        	$scope.fonss=1;
            if($scope.resumTab==1){
                var req ={//默认全部内容
                    type:"GET",
                    uri:"getCvdDeliveryList",
                    data:{
                        pageNo:$scope.listParams2.pageNo,
                        pageSize:$scope.thred,
                        all:"false",
                        type:'0'
                    }
                };
                httpServices.getMoney(req).success(function(response){
                    $scope.$apply(function(){
                        $scope.resumeLists = response.data.list;
                        $scope.totalCouns = response.data.Pagination.totalCount;
                       
                    })
                });
            }else if($scope.resumTab==2){
                var req ={//默认全部内容
                    type:"GET",
                    uri:"getCvdCollectionList",
                    data:{
                        pageNo:1,
                        pageSize:$scope.thred,
                        all:"false"
                    }
                };
                httpServices.getMoney(req).success(function(response){
                    $scope.$apply(function(){
                        $scope.resumeLists = response.data.list;
                        $scope.totalCouns = response.data.Pagination.totalCount;
                    })
                });
            }

        }
        $scope.pagnNoresum2=function(){
        	$scope.fonss=2;
            if($scope.resumTab==1){
               var req ={//默认全部内容
                    type:"GET",
                    uri:"getCvdDeliveryList",
                    data:{
                        pageNo:$scope.listParams2.pageNo,
                        pageSize:$scope.ficeth,
                        all:"false",
                        type:'0'
                    }
                };
                httpServices.getMoney(req).success(function(response){
                    $scope.$apply(function(){
                        $scope.resumeLists = response.data.list;
                        $scope.totalCouns = response.data.Pagination.totalCount;
                       
                    })
                });
            }else if($scope.resumTab==2){
                var req ={//默认全部内容
                    type:"GET",
                    uri:"getCvdCollectionList",
                    data:{
                        pageNo:1,
                        pageSize:$scope.ficeth,
                        all:"false"
                    }
                };
                httpServices.getMoney(req).success(function(response){
                    $scope.$apply(function(){
                        $scope.resumeLists = response.data.list;
                  
                        $scope.totalCouns = response.data.Pagination.totalCount;
                      
                    })
                });
            }
        }
        $scope.pagnNoresum3=function(){
        	$scope.fonss=3;
            if($scope.resumTab==1){
                var req ={//默认全部内容
                    type:"GET",
                    uri:"getCvdDeliveryList",
                    data:{
                        pageNo:$scope.listParams2.pageNo,
                        pageSize:$scope.onezero,
                        all:"false",
                        type:'0'
                    }
                };
                httpServices.getMoney(req).success(function(response){
                    $scope.$apply(function(){
                        $scope.resumeLists = response.data.list;
                        $scope.totalCouns = response.data.Pagination.totalCount;
                       
                    })
                });
            }else if($scope.resumTab==2){
                var req ={//默认全部内容
                    type:"GET",
                    uri:"getCvdCollectionList",
                    data:{
                        pageNo:1,
                        pageSize:$scope.onezero,
                        all:"false"
                    }
                };
                httpServices.getMoney(req).success(function(response){
                    $scope.$apply(function(){
                        $scope.resumeLists = response.data.list;
                        
                        $scope.totalCouns = response.data.Pagination.totalCount;
                       
                    })
                });
            }
        }
        function getresume(a,b){

                var req ={//默认全部内容
                    type:"GET",
                    uri:"getCvdDeliveryList",
                    data:{
                        pageNo:a,
                        pageSize:$scope.listParams.pageSize,
                        all:"false",
                        type:'0'
                    }
                };
                httpServices.getMoney(req).success(function(response){
                    $scope.$apply(function(){
                        $scope.resumeLists = response.data.list;
                        $scope.totalItem=response.data.Pagination.totalCount;
                        $scope.totalCouns = response.data.Pagination.totalCount;
                        getListModel3();
                    })
                });

        }
        $scope.list = [];
        function getListModel3(){

            $scope.paginationConf = {
                currentPage: $scope.listParams.pageNo,
                totalItems: $scope.totalItem,
                //每页预览条数
                itemsPerPage:$scope.listParams.pageSize,
                //分页总数
                numberOfPages:Math.ceil($scope.totalItem/$scope.listParams.pageSize),
                // 实际分页长度
                pagesLength:5,
                perPageOptions: [10, 20, 30, 40, 50],
                onChange: function (currentPage) {
                    if(currentPage){
                        $scope.paginationConf.currentPage = currentPage;
                    }
                    $scope.list = [];
                    $scope.listParams.pageNo = $scope.paginationConf.currentPage;
                    getresume($scope.listParams.pageNo,$scope.listParams.pageSize);
                }
            };
        }

        $scope.isDisabled = false;
        $scope.DateColor = function(){
            $scope.isDisabled = !$scope.isDisabled;
            $scope.peopecolor=false;
			if($scope.isDisabled){
					 var req = {//默认全部内容
	                type: "GET",
	                uri: "getSearchCvdList",
	                data: {
	                    keyWord:$scope.resunKeywork!=undefined?$scope.resunKeywork:"",
	                    functionIds:typeof($scope.jobInJobConf4.detail)!="undefined"&&$scope.jobInJobConf4.detail != ""?$scope.jobInJobConf4.detail[0].fdcId:"",//职能类别id
	                    salaryId: typeof($scope.slarIds)=="undefined"?"":$scope.slarIds,
	                    guildIds: typeof($scope.jobInIndustryConf.showValue)!="undefined" && $scope.jobInIndustryConf.showValue !=""?$scope.jobInIndustryConf.detail[0].dictId:"",
	                    eduId: typeof($scope.eaduId2)!="undefined"?$scope.eaduId2:"",
	                    overseaExp: $scope.checksearchHoonw!=undefined?$scope.checksearchHoonw:false,
	                    fullTimeFlag:$scope.checksearchHotwo!=undefined?$scope.checksearchHotwo:false,
	                    overseaStudy: $scope.checksearchHo!=undefined?$scope.checksearchHo:false,
	                    startAge:typeof($scope.starage)!="undefined"?$scope.starage:"",
	                    endAge: typeof($scope.agesCOn)!="undefined"?$scope.agesCOn:"",
	                    languageId: typeof($scope.languarSeTwoId)!="undefined"?$scope.languarSeTwoId:"",
	                    sex: typeof( $scope.sexids)!="undefined"?$scope.sexids:"",
	                    startTime: typeof($scope.startDates)!="undefined"?$scope.startDates:"",
	                    jobStatusId: typeof($scope.workSatasId)!="undefined"?$scope.workSatasId:"",
	                    professId: typeof($scope.majorConf2.detail)=="undefined"&&$scope.majorConf2.detail == ""?"":$scope.majorConf2.detail.pdcId,
	                    endExp:typeof($scope.yearId)=="undefined"?"":$scope.yearId,
	                    pageNo: $scope.listParams.pageNo,
	                    pageSize: 10,
	                    all: false,
	                    updateTime: false,
	                    targetFlag:true
	                }
	            };
	            if(typeof ($scope.jobInRegionIntension5.reValue)!= "undefined"){
	                req.data.pronviceId = $scope.jobInRegionIntension5.reValue.length == 0?"":$scope.jobInRegionIntension5.reValue[0].provinceId;
	                req.data.regionId = $scope.jobInRegionIntension5.reValue.length == 0?"":$scope.jobInRegionIntension5.reValue[0].regionId;
	                req.data.areaId = $scope.jobInRegionIntension5.reValue.length == 0?"":$scope.jobInRegionIntension5.reValue[0].areaId;
	            }
	            if(typeof ($scope.jobInRegionIntension2.reValue)!= "undefined"){
	                req.data.ewpPronviceIds = $scope.jobInRegionIntension2.reValue.length == 0?"":$scope.jobInRegionIntension2.reValue[0].provinceId;
	                req.data.ewpRegionIds = $scope.jobInRegionIntension2.reValue.length == 0?"":$scope.jobInRegionIntension2.reValue[0].regionId;
	                req.data.ewpAreaIds = $scope.jobInRegionIntension2.reValue.length == 0?"":$scope.jobInRegionIntension2.reValue[0].areaId;
	            }
	            httpServices.getMoney(req).success(function (response) {
	                $scope.$apply(function () {
	                    if (response.code == 0) {
	                        $scope.serchResum = response.data.list;
	                        $scope.totalNums=response.data.Pagination.totalCount;
	                    }
	                })
	            });
			}else{
				var req = {//默认全部内容
	                type: "GET",
	                uri: "getSearchCvdList",
	                data: {
	                    keyWord:$scope.resunKeywork!=undefined?$scope.resunKeywork:"",
	                    functionIds:typeof($scope.jobInJobConf4.detail)!="undefined"&&$scope.jobInJobConf4.detail != ""?$scope.jobInJobConf4.detail[0].fdcId:"",//职能类别id
	                    salaryId: typeof($scope.slarIds)=="undefined"?"":$scope.slarIds,
	                    guildIds: typeof($scope.jobInIndustryConf.showValue)!="undefined" && $scope.jobInIndustryConf.showValue !=""?$scope.jobInIndustryConf.detail[0].dictId:"",
	                    eduId: typeof($scope.eaduId2)!="undefined"?$scope.eaduId2:"",
	                    overseaExp: $scope.checksearchHoonw!=undefined?$scope.checksearchHoonw:false,
	                    fullTimeFlag:$scope.checksearchHotwo!=undefined?$scope.checksearchHotwo:false,
	                    overseaStudy: $scope.checksearchHo!=undefined?$scope.checksearchHo:false,
	                    startAge:typeof($scope.starage)!="undefined"?$scope.starage:"",
	                    endAge: typeof($scope.agesCOn)!="undefined"?$scope.agesCOn:"",
	                    languageId: typeof($scope.languarSeTwoId)!="undefined"?$scope.languarSeTwoId:"",
	                    sex: typeof( $scope.sexids)!="undefined"?$scope.sexids:"",
	                    startTime: typeof($scope.startDates)!="undefined"?$scope.startDates:"",
	                    jobStatusId: typeof($scope.workSatasId)!="undefined"?$scope.workSatasId:"",
	                    professId: typeof($scope.majorConf2.detail)=="undefined"&&$scope.majorConf2.detail == ""?"":$scope.majorConf2.detail.pdcId,
	                    endExp:typeof($scope.yearId)=="undefined"?"":$scope.yearId,
	                    pageNo: $scope.listParams.pageNo,
	                    pageSize: 10,
	                    all: false,
	                    updateTime: true,
	                     targetFlag:false
	                }
	            };
	            if(typeof ($scope.jobInRegionIntension5.reValue)!= "undefined"){
	                req.data.pronviceId = $scope.jobInRegionIntension5.reValue.length == 0?"":$scope.jobInRegionIntension5.reValue[0].provinceId;
	                req.data.regionId = $scope.jobInRegionIntension5.reValue.length == 0?"":$scope.jobInRegionIntension5.reValue[0].regionId;
	                req.data.areaId = $scope.jobInRegionIntension5.reValue.length == 0?"":$scope.jobInRegionIntension5.reValue[0].areaId;
	            }
	            if(typeof ($scope.jobInRegionIntension2.reValue)!= "undefined"){
	                req.data.ewpPronviceIds = $scope.jobInRegionIntension2.reValue.length == 0?"":$scope.jobInRegionIntension2.reValue[0].provinceId;
	                req.data.ewpRegionIds = $scope.jobInRegionIntension2.reValue.length == 0?"":$scope.jobInRegionIntension2.reValue[0].regionId;
	                req.data.ewpAreaIds = $scope.jobInRegionIntension2.reValue.length == 0?"":$scope.jobInRegionIntension2.reValue[0].areaId;
	            }
	            httpServices.getMoney(req).success(function (response) {
	                $scope.$apply(function () {
	                    if (response.code == 0) {
	                        $scope.serchResum = response.data.list;
	                        $scope.totalNums=response.data.Pagination.totalCount;
	                    }
	                })
	            });
			}
           

        };
        $scope.peopecolor = false;
        $scope.peopleColor=function(){
            $scope.isDisabled=false;
            $scope.peopecolor = !$scope.peopecolor;
            if($scope.peopecolor){
            	
            }else{
            	
            }
            var req = {//默认全部内容
                type: "GET",
                uri: "getSearchCvdList",
                data: {
                    keyWord:$scope.resunKeywork!=undefined?$scope.resunKeywork:"",
                    functionIds:typeof($scope.jobInJobConf4.detail)!="undefined"&&$scope.jobInJobConf4.detail != ""?$scope.jobInJobConf4.detail[0].fdcId:"",//职能类别id
                    salaryId: typeof($scope.slarIds)=="undefined"?"":$scope.slarIds,
                    guildIds: typeof($scope.jobInIndustryConf.showValue)!="undefined" && $scope.jobInIndustryConf.showValue !=""?$scope.jobInIndustryConf.detail[0].dictId:"",
                    eduId: typeof($scope.eaduId2)!="undefined"?$scope.eaduId2:"",
                    overseaExp: $scope.checksearchHoonw!=undefined?$scope.checksearchHoonw:false,
                    fullTimeFlag:$scope.checksearchHotwo!=undefined?$scope.checksearchHotwo:false,
                    overseaStudy: $scope.checksearchHo!=undefined?$scope.checksearchHo:false,
                    startAge:typeof($scope.starage)!="undefined"?$scope.starage:"",
                    endAge: typeof($scope.agesCOn)!="undefined"?$scope.agesCOn:"",
                    languageId: typeof($scope.languarSeTwoId)!="undefined"?$scope.languarSeTwoId:"",
                    sex: typeof( $scope.sexids)!="undefined"?$scope.sexids:"",
                    startTime: typeof($scope.startDates)!="undefined"?$scope.startDates:"",
                    jobStatusId: typeof($scope.workSatasId)!="undefined"?$scope.workSatasId:"",
                    professId: typeof($scope.majorConf2.detail)=="undefined"&&$scope.majorConf2.detail == ""?"":$scope.majorConf2.detail.pdcId,
                    endExp:typeof($scope.yearId)=="undefined"?"":$scope.yearId,
                    pageNo: $scope.listParams.pageNo,
                    pageSize: 10,
                    all: false,
                    updateTime: false,
                     targetFlag:false
                }
            };
            if(typeof ($scope.jobInRegionIntension5.reValue)!= "undefined"){
                req.data.pronviceId = $scope.jobInRegionIntension5.reValue.length == 0?"":$scope.jobInRegionIntension5.reValue[0].provinceId;
                req.data.regionId = $scope.jobInRegionIntension5.reValue.length == 0?"":$scope.jobInRegionIntension5.reValue[0].regionId;
                req.data.areaId = $scope.jobInRegionIntension5.reValue.length == 0?"":$scope.jobInRegionIntension5.reValue[0].areaId;
            }
            if(typeof ($scope.jobInRegionIntension2.reValue)!= "undefined"){
                req.data.ewpPronviceIds = $scope.jobInRegionIntension2.reValue.length == 0?"":$scope.jobInRegionIntension2.reValue[0].provinceId;
                req.data.ewpRegionIds = $scope.jobInRegionIntension2.reValue.length == 0?"":$scope.jobInRegionIntension2.reValue[0].regionId;
                req.data.ewpAreaIds = $scope.jobInRegionIntension2.reValue.length == 0?"":$scope.jobInRegionIntension2.reValue[0].areaId;
            }
            httpServices.getMoney(req).success(function (response) {
                $scope.$apply(function () {
                    if (response.code == 0) {
                        $scope.serchResum = response.data.list;
                        $scope.totalNums=response.data.Pagination.totalCount;
                    }
                })
            });

        }


        /*搜索简历*/

        $scope.checksearch=function(){
            $scope.checksearch1=!$scope.checksearch1;
        }
        $scope.Degree=function(){
            $scope.DegreeOne=!$scope.DegreeOne
        }
        $scope.DegreeTw=function(){
            $scope.DegreeTwo=!$scope.DegreeTwo
        }
        $scope.DegreeFo=function(){
            $scope.DegreeFour=!$scope.DegreeFour;
        }
        $scope.DegreeThr=function(){
            $scope.DegreeThree=!$scope.DegreeThree;
        }
        $scope.workPosName=$scope.monName = $scope.sexName=$scope.workstatus=$scope.YearOneTwo=$scope.YearOne = $scope.ageCon6 =  $scope.ageCon5=$scope.ageCon3= $scope.ageCon4 = "不限"
        $scope.SaveAgeNum4=function(item){
            $scope.ageCon4 = item.name//工作年限
        }
        $scope.SaveAgeNum5=function(item){
            $scope.starage=$scope.ageCon5=item.name//年龄

        }
        $scope.SaveAgeNum6=function(item){
            $scope.agesCOn=$scope.ageConone= item.name;//年龄
            if(parseInt($scope.ageConone)<=parseInt($scope.ageCon5)){
                alert("年龄不对啦")
            }else if(parseInt($scope.ageCon5) == undefined){
                alert("请先选择第一个年龄")
            }else{
                $scope.ageCon6= item.name;//年龄
                $scope.age =$scope.ageCon5;
                $scope.age2con = $scope.ageCon5+'-'+$scope.ageCon6
                if($scope.age != $scope.oldage){
                    if($scope.condition.length != 0){
                        for(var i in $scope.condition){
                            var ages = {
                                name:"年龄:",
                                nameValue:$scope.ageCon5+'-'+$scope.ageCon6
                            }
                            if($scope.condition[i].nameValue == $scope.oldage){
                                $scope.condition.splice(i,1);
                                break;
                            }
                        }
                        $scope.condition.push(ages)
                    }else{
                        var ages = {
                            name:"年龄:",
                            nameValue:$scope.ageCon5+'-'+$scope.ageCon6
                        }
                        $scope.condition.push(ages)
                    }
                }
                $scope.oldage = $scope.ageCon5+'-'+$scope.ageCon6
            }







        }

        $scope.SaveAgeYearOne=function(item){
            $scope.YearOne=item.name;
            $scope.languarSeTwoId = item.languageId;
        }
        $scope.YearOneTwo="不限"
        $scope.SaveAgeYearTwo=function(item){
            $scope.YearOneTwo = item.name;
            $scope.langruName =$scope.YearOne + '-' + $scope.YearOneTwo
            if($scope.oldnameValue != $scope.langruName){
                if($scope.condition.length != 0){
                    for(var i in $scope.condition){
                        var obj = {
                            name: "语言:",
                            nameValue: $scope.YearOne + '-' + $scope.YearOneTwo
                        }
                        if($scope.condition[i].nameValue == $scope.oldnameValue){
                            $scope.condition.splice(i,1);
                            break;
                        }
                    }
                    $scope.condition.push(obj)
                }else{
                    var obj = {
                        name: "语言:",
                        nameValue: $scope.YearOne + '-' + $scope.YearOneTwo
                    }
                    $scope.condition.push(obj)

                }
            }
            $scope.oldnameValue = $scope.YearOne + '-' + $scope.YearOneTwo


        }
        $scope.saveStadus=function(item){
            $scope.workstatus = item.dictName;
            $scope.statusId = item.dictId;//求职状态
        }
        $scope.saveSex=function(item){
            $scope.manId = item.id;
            $scope.sexName=item.name;//性别
        }
        $scope.saveMoneyId=function(item){
            $scope.moneyId = item.srId;
            $scope.monName = item.srName;//薪资
        }
        $scope.SavedictName=function(item){
          $scope.workPosId = item.dictId;
          $scope.workPosName=item.dictName;//行业
        }
        $scope.saveKey=function(a){
            $scope.resunKey=a;//搜搜词语
        }
        function GetDateStr(AddDayCount) {
            var dd = new Date();
            dd.setDate(dd.getDate()+AddDayCount);//获取AddDayCount天后的日期
            var y = dd.getFullYear();
            var m = (dd.getMonth()+1)<10?"0"+(dd.getMonth()+1):(dd.getMonth()+1);//获取当前月份的日期，不足10补0
            var d = dd.getDate()<10?"0"+dd.getDate():dd.getDate(); //获取当前几号，不足10补0
            return y+"-"+m+"-"+d;
        }
        $scope.DateName="不限"
        $scope.saveMyyear=function(){
            $scope.startDate =  GetDateStr(-360)
            $scope.DateName2 = $scope.DateName="近一年"
        }
        $scope.saveMonth=function(){
            $scope.startDate =  GetDateStr(-30)
            $scope.DateName2 = $scope.DateName="近三月"
        }
        $scope.threeDay=function(){
            $scope.startDate =  GetDateStr(-3)
            $scope.DateName2 = $scope.DateName="近三天"
        }
        function getDate(){
            var today = new Date();//获得当前日期
            var year = today.getFullYear();//获得年份
            var month = today.getMonth() + 1;//此方法获得的月份是从0---11，所以要加1才是当前月份
            var day = today.getDate();//获得当前日期
            $scope.endDate = year+'-'+month+'-'+day

        }
        getDate()
        $scope.regio2nName="请选择"
        $scope.savePicId=function(item){
            $scope.eduId = item.dictId
            $scope.regio2nName= item.dictName;
        }

        $scope.saveWork=function(a){
            $scope.saveWorkCon =a;
        }
        $scope.showDeatisCon=function(){

                var req = {//默认全部内容
                    type: "GET",
                    uri: "getSearchCvdList",
                    data: {
                        keyWord: $scope.saveWorkCon!=undefined?$scope.saveWorkCon:"",
                        pageNo: $scope.listParams.pageNo,
                        pageSize: $scope.listParams.pageSize,
                      	updateTime:false,
	                     all: false,
	                     targetFlag:false
                    }
                };
                if(typeof ($scope.jobInRegionIntension4.reValue)!= "undefined"){
                    req.data.pronviceId = $scope.jobInRegionIntension4.reValue.length == 0?"":$scope.jobInRegionIntension4.reValue[0].provinceId;
                     req.data.regionId = $scope.jobInRegionIntension4.reValue.length == 0?"":$scope.jobInRegionIntension4.reValue[0].regionId;
                     req.data.areaId = $scope.jobInRegionIntension4.reValue.length == 0?"":$scope.jobInRegionIntension4.reValue[0].areaId;
                }
                httpServices.getMoney(req).success(function (response) {
                    $scope.$apply(function () {
                        if (response.msg == "success") {
                            $scope.showDetailsSeachs = 1;
                            $scope.serchResum = response.data.list;
                            $scope.totalItem = response.data.Pagination.totalCount;

                        }
                    })
                });


        }
        function getworkSKill(){
        	  var req = {//默认全部内容
                        type: "GET",
                        uri: "getFunctionsTopCategory",
                        data: {
                           
                        }
                    };
                    httpServices.getJobLangularOne(req).success(function (response) {
                        $scope.$apply(function () {
                            if(response.msg=="success"){
                               $scope.workFun = response.data;
                            }
                        })
                    });
        }
        getworkSKill();
           function getCommoney(){
                var req ={
                    type:"GET",
                    uri:"getSalaryCount",
                    data:{}
                };
                httpServices.getMoney(req).success(function(response){
                    $scope.$apply(function(){
                        $scope.workMonye=response.data;
                    })
                });
            }
            getCommoney();
             function getNature(){
                var req ={
                    type:"GET",
                    uri:"getCompanyNature",
                    data:{}
                };
                httpServices.getMoney(req).success(function(response){
                    $scope.$apply(function(){

                        $scope.workNature = response.data;
                    })
                });
            }
            getNature();
             function getJOByear(){
                var req ={
                    type:"GET",
                    uri:"getJobExperience",
                    data:{}
                };
                httpServices.getJobLangularOne(req).success(function(response){
                    $scope.$apply(function(){

                       $scope.getJobExp = response.data;
                    })
                });
            }
            getJOByear();
		$scope.condition=[];


        $scope.saveWorkMoney=function(item,$index){
            $scope.showColor2=$index;
            $scope.slarIds = item.srId;
            $scope.monName=$scope.moneyName = item.srName;
            if($scope.oldMoneuName!=$scope.moneyName){
                if($scope.condition.length != 0){
                    for(var i in $scope.condition){
                        var  obj = {
                            name: "薪资:",
                            nameValue: item.srName
                        }
                        if($scope.condition[i].nameValue == $scope.oldMoneuName){
                            $scope.condition.splice(i,1);
                            break;
                        }
                    }
                    $scope.condition.push(obj)
                }else{
                    var obj = {
                        name:"薪资:",
                        nameValue:item.srName
                    }
                    $scope.condition.push(obj)
                }
            }

            $scope.oldMoneuName = item.srName;
        }

        $scope.showFout=function(){
            $scope.jobInJobConf4.isShow=true;
            $scope.showColorone=1
        }

        $scope.saveWOrkYEar=function(item,$index){
            $scope.ageCon3=item.dictName;
            $scope.yearNum = parseInt(item.dictName);
            $scope.yearId = item.dictId;
            $scope.showColor4=$index
            $scope.yearName = item.dictName;
            if($scope.yearName!=$scope.oldyearName){
                if($scope.condition.length != 0){
                    for(var i in $scope.condition){
                        var obj = {
                            name: "工作年限:",
                            nameValue: item.dictName
                        }
                        if($scope.condition[i].nameValue == $scope.oldyearName){
                            $scope.condition.splice(i,1);
                            break;
                        }
                    }
                    $scope.condition.push(obj)
                }else{
                    var obj = {
                        name: "工作年限:",
                        nameValue: item.dictName
                    }
                    $scope.condition.push(obj)
                }
            }

            $scope.oldyearName = item.dictName;
        }
        $scope.saveEdu=function(item,$index){
            $scope.showColor5=$index;
            $scope.eaduId2 = item.dictId;
            $scope.regio2nName=$scope.eduName = item.dictName
            if($scope.oldName != $scope.eduName){
                if($scope.condition.length != 0){
                    for(var i in $scope.condition){
                        var  obj = {
                            name: "学历:",
                            nameValue: item.dictName
                        }
                        if($scope.condition[i].nameValue == $scope.oldName){
                            $scope.condition.splice(i,1);
                            break;
                        }
                    }
                    $scope.condition.push(obj)
                }else{
                    var obj = {
                        name: "学历:",
                        nameValue: item.dictName
                    }
                    $scope.condition.push(obj)

                }
            }
            $scope.oldName = item.dictName
        }
        $scope.langularSo=$scope.ChoiceTit="请选择"
        $scope.langularId=[];
        $scope.savelanguage=function(item){
            $scope.ChoiceTit = item.name;
         }
        $scope.savelanguaOne=function(item){
            $scope.langularSo=item.name;
            $scope.languarSeTwoId = item.languageId;
        }
    $scope.saveLan=function(item){
        $scope.langruName =$scope.ChoiceTit + '-' + $scope.langularSo
        if($scope.ChoiceTit != "请选择" && $scope.langularSo != "请选择"){
        	  if($scope.oldnameValue != $scope.langruName){
            if($scope.condition.length != 0 ){
                for(var i in $scope.condition){
                    var obj = {
                        name: "语言:",
                        nameValue: $scope.ChoiceTit + '-' + $scope.langularSo
                    }
                    if($scope.condition[i].nameValue == $scope.oldnameValue){
                        $scope.condition.splice(i,1);
                        break;
                    }
                }
                $scope.condition.push(obj)
            }else{
                var obj = {
                    name: "语言:",
                    nameValue: $scope.ChoiceTit + '-' + $scope.langularSo
                }
                $scope.condition.push(obj)

            }
        }
        $scope.showNameTwo = 2;
        $scope.oldnameValue = $scope.ChoiceTit + '-' + $scope.langularSo
        }
      
    }
    $scope.sexName="性别";
    $scope.savelangsex=function(item){

        $scope.sexName = item.name;
        $scope.sexids = item.id;
        if($scope.oldSexName!=$scope.sexName){
            if($scope.condition.length != 0){
                for(var i in $scope.condition){
                    var  obj = {
                        name: "性别:",
                        nameValue: item.name
                    }
                    if($scope.condition[i].nameValue == $scope.oldSexName){
                        $scope.condition.splice(i,1);
                        break;
                    }
                }
                $scope.condition.push(obj)
            }else{
                var obj = {
                    name:"性别:",
                    nameValue:item.name
                }
                $scope.condition.push(obj)
            }
        }
        $scope.oldSexName = item.name;
    }
    $scope.saveName=function(gaeOne,ageTwo){
        $scope.starage= gaeOne;
        $scope.age =ageTwo;
        $scope.agesCOn=ageTwo;
        $scope.age2con = gaeOne+'-'+ageTwo
        if($scope.age != $scope.oldage && gaeOne!= undefined && ageTwo!=undefined ){
            if($scope.condition.length != 0){
                for(var i in $scope.condition){
                    var ages = {
                        name:"年龄:",
                        nameValue:gaeOne+'-'+ageTwo
                    }
                    if($scope.condition[i].nameValue == $scope.oldage){
                        $scope.condition.splice(i,1);
                        break;
                    }
                }
                $scope.condition.push(ages)
            }else{
                var ages = {
                    name:"年龄:",
                    nameValue:gaeOne+'-'+ageTwo
                }
                $scope.condition.push(ages)
            }
        }
        $scope.oldage = gaeOne+'-'+ageTwo

    }
        $scope.DateName2="简历更新"
        $scope.saveMyyear2=function(){
            $scope.startDates =  GetDateStr(-360)
            $scope.DateName2 = "近一年"
            if($scope.DateName != $scope.DateName2){
                if($scope.condition.length != 0 && $scope.DateName2 != "不限"){
                    for(var i in $scope.condition){
                        var  obj = {
                            name: "时间:",
                            nameValue: "近一年"
                        }
                        if($scope.condition[i].nameValue == $scope.DateName){
                            $scope.condition.splice(i,1);
                            break;
                        }
                    }
                    $scope.condition.push(obj)
                }else{
                    var obj = {
                        name:"时间:",
                        nameValue:"近一年"
                    }
                    $scope.condition.push(obj)
                }
            }
            $scope.DateName =  $scope.DateName2

        }
        $scope.saveMonth2=function(){
            $scope.startDates =  GetDateStr(-30)
            $scope.DateName2 = "近三月"
            if($scope.DateName != $scope.DateName2){
                if($scope.condition.length != 0 && $scope.DateName2 != "不限"){
                    for(var i in $scope.condition){
                        var  obj = {
                            name: "时间:",
                            nameValue: "近三月"
                        }
                        if($scope.condition[i].nameValue == $scope.DateName){
                            $scope.condition.splice(i,1);
                            break;
                        }
                    }
                    $scope.condition.push(obj)
                }else{
                    var obj = {
                        name:"时间:",
                        nameValue:"近三月"
                    }
                    $scope.condition.push(obj)
                }
            }
            $scope.DateName =  $scope.DateName2
        }
        $scope.threeDay2=function(){
            $scope.startDates =  GetDateStr(-3)
            $scope.DateName2 = "近三天"
            if($scope.DateName != $scope.DateName2){
                if($scope.condition.length != 0 && $scope.DateName2 != "不限"){
                    for(var i in $scope.condition){
                        var  obj = {
                            name: "时间:",
                            nameValue: "近三天"
                        }
                        if($scope.condition[i].nameValue == $scope.DateName){
                            $scope.condition.splice(i,1);
                            break;
                        }
                    }
                    $scope.condition.push(obj)
                }else if($scope.DateName2 != "不限"){
                    var obj = {
                        name:"时间:",
                        nameValue:"近三天"
                    }
                    $scope.condition.push(obj)
                }
            }
            $scope.DateName =  $scope.DateName2
        }
        $scope.workSata="求职状态"
        $scope.saveworkStatus=function(item){
            $scope.workstatus=$scope.workSata=item.dictName;
            $scope.workSatasId=item.dictId;
            if($scope.oldworkSata!= $scope.workSata){
                if($scope.condition.length != 0){
                    for(var i in $scope.condition){
                        var obj = {
                            name:"求职状态:",
                            nameValue:item.dictName
                        }
                        if($scope.condition[i].nameValue == $scope.oldworkSata){
                            $scope.condition.splice(i,1);
                            break;
                        }
                    }
                    $scope.condition.push(obj)
                }else{
                    var obj = {
                        name:"求职状态:",
                        nameValue:item.dictName
                    }
                    $scope.condition.push(obj)
                }
            }
            $scope.oldworkSata=item.dictName;
        }
        $scope.checksearchHotwo=$scope.checksearchHoonw=$scope.checksearchHo=false;
        $scope.checksearch2=function(){
            $scope.checksearchHo=!$scope.checksearchHo;
            if($scope.checksearchHo){
                if($scope.condition!=0){
                    for(var i in $scope.condition){
                        var obj = {
                            name:"学历:",
                            nameValue:"海外留学"
                        }
                        if($scope.condition[i].nameValue == "海外留学"){

                        }else{
                            $scope.condition.push(obj);
                            return
                        }
                    }
                }else{
                    var obj = {
                        name:"学历:",
                        nameValue:"海外留学"
                    }
                    $scope.condition.push(obj)
                }
            }else{
                for(var i in $scope.condition){
                    if($scope.condition[i].nameValue == "海外留学"){
                        $scope.condition.splice(i,1);
                        return
                    }
                }
            }
        }
        $scope.checksearch3=function(){
            $scope.checksearchHoonw=!$scope.checksearchHoonw;
            if($scope.checksearchHoonw){
                if($scope.condition!=0){
                    for(var i in $scope.condition){
                        var obj = {
                            name:"工作年限:",
                            nameValue:"海外经验"
                        }
                        if($scope.condition[i].nameValue == "海外经验"){

                        }else{
                            $scope.condition.push(obj)
                            return
                        }
                    }
                }else{
                    var obj = {
                        name:"工作年限:",
                        nameValue:"海外经验"
                    }
                    $scope.condition.push(obj)
                }
            }else{
                for(var i in $scope.condition){
                    if($scope.condition[i].nameValue == "海外经验"){
                        $scope.condition.splice(i,1);
                        break;
                    }
                }
            }
        }
        $scope.checksearch4=function(){
            $scope.checksearchHotwo=!$scope.checksearchHotwo;
            if($scope.checksearchHotwo){
                if($scope.condition!=0){
                    for(var i in $scope.condition){
                        var obj = {
                            name:"学历:",
                            nameValue:"全日制"
                        }
                        if($scope.condition[i].nameValue == "全日制"){

                        }else{
                            $scope.condition.push(obj)
                            return
                        }

                    }
                }else{
                    var obj = {
                        name:"学历:",
                        nameValue:"全日制"
                    }
                    $scope.condition.push(obj)
                }
            }else{
                for(var i in $scope.condition){
                    if($scope.condition[i].nameValue == "全日制"){
                        $scope.condition.splice(i,1);
                    }
                }
            }
        }
        $scope.$watch('majorConf.detail',function(newValue,oldValue, scope){
        if(newValue !="" &&  newValue != oldValue){
                if($scope.condition.length != 0 && newValue!=undefined){
                    for(var i in $scope.condition){
                        var obj = {
                            name:"专业:",
                            nameValue:newValue.pdcName
                        }
                        if($scope.condition[i].nameValue == oldValue ){
                            $scope.condition.splice(i,1);
                            break;
                        }
                    }
                    $scope.condition.push(obj)
                }else if(newValue!=undefined){
                    if(newValue !=""){
                        var obj = {
                            name:"专业:",
                            nameValue:newValue.pdcName
                        }
                        $scope.condition.push(obj)
                    }

                }

            }
    });

        $scope.$watch('jobInRegionIntension5.showValue',function(newValue,oldValue, scope){
            if(newValue !="自定义" &&  newValue != oldValue){
                if($scope.condition.length != 0 && newValue!=undefined){
                    for(var i in $scope.condition){
                        var obj = {
                            name:"期望工作地:",
                            nameValue:newValue
                        }
                        if($scope.condition[i].nameValue == oldValue){
                            $scope.condition.splice(i,1);
                            break;
                        }
                    }
                    $scope.condition.push(obj)
                }else if(newValue!=undefined){
                    var obj = {
                        name:"期望工作地:",
                        nameValue:newValue
                    }
                    $scope.condition.push(obj)
                }
            }

        });
        $scope.$watch('jobInIndustryConf.showValue',function(newValue,oldValue, scope){
            if(newValue !="自定义" &&  newValue != oldValue){
                if($scope.condition.length != 0 && newValue!=undefined){
                    for(var i in $scope.condition){
                        var obj = {
                            name:"行业:",
                            nameValue:newValue
                        }
                        if($scope.condition[i].nameValue == oldValue){
                            $scope.condition.splice(i,1);
                            break;
                        }
                    }
                    $scope.condition.push(obj)
                }else if(newValue!=undefined){
                    var obj = {
                        name:"行业:",
                        nameValue:newValue
                    }
                    $scope.condition.push(obj)
                }
            }
        });
        $scope.$watch('jobInJobConf4.showValue',function(newValue,oldValue, scope){
            if(newValue !="自定义" &&  newValue != oldValue){
                if($scope.condition.length != 0 && newValue!=undefined){
                    for(var i in $scope.condition){
                        var obj = {
                            name:"职能:",
                            nameValue:newValue
                        }
                        if($scope.condition[i].nameValue == oldValue){
                            $scope.condition.splice(i,1);
                            break;
                        }
                    }
                    $scope.condition.push(obj)
                }else if(newValue!=undefined){
                    var obj = {
                        name:"职能:",
                        nameValue:newValue
                    }
                    $scope.condition.push(obj)
                }
            }

        });
        $scope.$watch('jobInRegionIntension2.showValue',function(newValue,oldValue, scope){
            if(newValue !="自定义" &&  newValue != oldValue){
                if($scope.condition.length != 0 && newValue!=undefined){
                    for(var i in $scope.condition){
                        var obj = {
                            name:"职能:",
                            nameValue:newValue
                        }
                        if($scope.condition[i].nameValue == oldValue){
                            $scope.condition.splice(i,1);
                            break;
                        }
                    }
                    $scope.condition.push(obj)
                }else if(newValue!=undefined){
                    var obj = {
                        name:"职能:",
                        nameValue:newValue
                    }
                    $scope.condition.push(obj)
                }
            }

        });

        $scope.deleteTags=function(idx,index){
                if($scope.condition[index].name=="工作年限:"){
                    if($scope.condition[index].nameValue=="海外经验"){
                        $scope.checksearchHoonw=false;
                    }
                    $scope.yearId=undefined;
                    $scope.showColor4=-1;
                    $scope.checksearchHoonw=false;
                }else if($scope.condition[index].name=="学历:"){
                    if($scope.condition[index].nameValue=="全日制"){
                        $scope.checksearchHotwo=false;
                    }else if($scope.condition[index].nameValue=="海外留学"){
                        $scope.checksearchHo=false;
                    }
                    $scope.eaduId2=undefined;
                    $scope.showColor5=-1;
                }else if($scope.condition[index].name=="薪资:"){
                    $scope.showColor2=-1;
                    $scope.slarIds=undefined;
                }else if($scope.condition[index].name=="年龄:"){
                    $scope.agesCOn=undefined;
                    $scope.showColor2=-1;
                }else if($scope.condition[index].name=="职能:"){
                    $scope.jobInJobConf4.showValue="自定义"
                    $scope.jobInJobConf4.detail=undefined;
                    $scope.showColorone=-1;
                }else if($scope.condition[index].name=="期望工作地:"){
                    $scope.jobInRegionIntension5.reValue=undefined;
                }else if($scope.condition[index].name=="语言:"){
                    $scope.languarSeTwoId=undefined;
                }else if($scope.condition[index].name=="专业:"){
                    $scope.majorConf2.detail=undefined
                }else if($scope.condition[index].name=="性别:"){
                    $scope.sexName="不限";
                    $scope.sexids=undefined;
                }else if($scope.condition[index].name=="时间:"){
                    $scope.DateName2="时间";
                    $scope.startDates=undefined;
                }else if($scope.condition[index].name=="求职状态:"){
                    $scope.workSatasId=undefined;
                    $scope.workSata="求职状态"
                }
                $scope.condition.splice(index,1);
                $scope.oldworkSata="";
                $scope.DateName="";
                $scope.oldage="";
                $scope.oldSexName="";
                $scope.oldnameValue="";
                $scope.oldName="";
                $scope.oldyearName="";
                $scope.oldMoneuName="";
        }
        $scope.showDetailsSeach=function() {
            $scope.showDetailsSeachs=1;
            if($scope.resunKey!=undefined){
                var  obj = {
                    name: "职位:",
                    nameValue: $scope.resunKey
                }
                $scope.condition.push(obj)
            }

        }
        
         $scope.listParamsCon = {
            currentTcId: "",
            download: false,
            time: false,
            pageNo: 1,
            pageSize:30,
            all: false,
            typeId: "",
            scId: "",
            dcId: "",
            keyWord:"",
            //dcName scName 用于加入缓存 在详情中显示面包树导航
            dcName:"",
            scName:""
        };
        
         $scope.$watch('condition',function(){
                $scope.peopecolor=false;
                $scope.isDisabled=false;
                getcvalist();
    },true);
 			
	function getcvalist(){
                	 var req = {//默认全部内容
                     type: "GET",
                     uri: "getSearchCvdList",
                     data: {
                         keyWord:$scope.resunKeywork!=undefined?$scope.resunKeywork:"",
                         functionIds:typeof($scope.jobInJobConf4.detail)!="undefined"&&$scope.jobInJobConf4.detail != ""?$scope.jobInJobConf4.detail[0].fdcId:"",//职能类别id
                         salaryId: typeof($scope.slarIds)=="undefined"?"":$scope.slarIds,
                         guildIds: typeof($scope.jobInIndustryConf.showValue)!="undefined" && $scope.jobInIndustryConf.showValue !=""?$scope.jobInIndustryConf.detail[0].dictId:"",
                         eduId: typeof($scope.eaduId2)!="undefined"?$scope.eaduId2:"",
                         overseaExp: $scope.checksearchHoonw!=undefined?$scope.checksearchHoonw:false,
                         fullTimeFlag:$scope.checksearchHotwo!=undefined?$scope.checksearchHotwo:false,
                         overseaStudy: $scope.checksearchHo!=undefined?$scope.checksearchHo:false,
                         startAge:typeof($scope.starage)!="undefined"?$scope.starage:"",
                         endAge: typeof($scope.agesCOn)!="undefined"?$scope.agesCOn:"",
                         languageId: typeof($scope.languarSeTwoId)!="undefined"?$scope.languarSeTwoId:"",
                         sex: typeof( $scope.sexids)!="undefined"?$scope.sexids:"",
                         startTime: typeof($scope.startDates)!="undefined"?$scope.startDates:"",
                         jobStatusId: typeof($scope.workSatasId)!="undefined"?$scope.workSatasId:"",
                         professId: typeof($scope.majorConf2.detail)=="undefined"&&$scope.majorConf2.detail == ""?"":$scope.majorConf2.detail.pdcId,
                         updateTime: false,
                         endExp:typeof($scope.yearId)=="undefined"?"":$scope.yearId,
                         pageNo: $scope.listParamsCon.pageNo,
                         pageSize: $scope.listParamsCon.pageSize,
                         updateTime:true,
                         all: false,
                         targetFlag:false
                         
                     }
                 };
                 if(typeof ($scope.jobInRegionIntension5.reValue)!= "undefined"){
                     req.data.pronviceId = $scope.jobInRegionIntension5.reValue.length == 0?"":$scope.jobInRegionIntension5.reValue[0].provinceId;
                     req.data.regionId = $scope.jobInRegionIntension5.reValue.length == 0?"":$scope.jobInRegionIntension5.reValue[0].regionId;
                     req.data.areaId = $scope.jobInRegionIntension5.reValue.length == 0?"":$scope.jobInRegionIntension5.reValue[0].areaId;
                 }
                 if(typeof ($scope.jobInRegionIntension2.reValue)!= "undefined"){
                     req.data.ewpPronviceIds = $scope.jobInRegionIntension2.reValue.length == 0?"":$scope.jobInRegionIntension2.reValue[0].provinceId;
                     req.data.ewpRegionIds = $scope.jobInRegionIntension2.reValue.length == 0?"":$scope.jobInRegionIntension2.reValue[0].regionId;
                     req.data.ewpAreaIds = $scope.jobInRegionIntension2.reValue.length == 0?"":$scope.jobInRegionIntension2.reValue[0].areaId;
                 }
                 httpServices.getMoney(req).success(function (response) {
                     $scope.$apply(function () {
                         if (response.code == 0) {
                             $scope.serchResum = response.data.list;
                             $scope.totalItem = response.data.Pagination.totalCount;
                             $scope.totalNums=response.data.Pagination.totalCount;
                             getListModelvad();
                         }
                     })
                 });
                }
          
				$scope.list = [];
           		 function getListModelvad(){

                $scope.paginationConf = {
                    currentPage: $scope.listParamsCon.pageNo,
                    totalItems: $scope.totalItem,
                    //每页预览条数
                    itemsPerPage:$scope.listParamsCon.pageSize,
                    //分页总数
                    numberOfPages:Math.ceil($scope.totalItem/$scope.listParamsCon.pageSize),
                    // 实际分页长度
                    pagesLength:5,
                    perPageOptions: [10, 20, 30, 40, 50],
                    onChange: function (currentPage) {
                        if(currentPage){
                            $scope.paginationConf.currentPage = currentPage;
                        }
                        $scope.list = [];
                        $scope.listParamsCon.pageNo = $scope.paginationConf.currentPage;
                        getcvalist();
                    }
                };
            }
           		 $scope.showTi=false;
           		 $scope.showMorTit=function(){
           		 	$scope.showTi=!$scope.showTi
           		 }
           	

    })
});
